package com.sjgs.gis.web;

import com.sjgs.gis.service.PluginDeployService;
import com.sjgs.gis.service.dto.NodeDTO;
import com.sjgs.gis.service.dto.PluginDTO;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


import java.net.URISyntaxException;

@RestController
@RequestMapping("/api")
public class PluginDeployResource {
    private final Logger log = LoggerFactory.getLogger(PluginDeployResource.class);
    private final PluginDeployService pluginDeployService;
    public PluginDeployResource(PluginDeployService pluginDeployService) {
        this.pluginDeployService = pluginDeployService;
    }

    @PostMapping("/plugin-deploy")
    public ResponseEntity<NodeDTO> createNode(@RequestBody PluginDTO pluginDTO) throws URISyntaxException {

        return null;
    }
}
